When the bell finally rang and there was a mad rush toward the exit. Lockhart saw his chance and straightened up, catching sight of Harry and Hermione with their friends, who were walking towards to the door shaking their heads.