fix when unschedule mode and customise_command are used together