Hermione walked back stunned at the turn of events, but she couldn't be too surprised. McGonagall was one of the fairer teachers, and most of her bias was unconscious. She supposed that she was lucky she wasn't caught by Dumbledore or Filch.