fixed incorrect scheduling of class