fixed bug  scheduleUpdate