applied Cocos2d fix to CCScheduler