fixed resource calendar ordering problem