Well, they were wrong, and as they approached the Potions classroom, past which Hermione could take the stairs to the upper floors and Malfoy, on the other hand, could get to the common room they met up with part of their group. They were mostly Gryffindors, including Harry.