scheduled task fix