fix customization when unschedule mode is used

forward port of #6492