fix scheduler demo