fixed incorrect scheduling of class
Merge pull request #185 from apatel/master

fixed incorrect scheduling of class