fix scheduler