Scheduled task would not update properly