Fix class schedule bug