js schedule fix