Fixed the is_teacher bug