Fixing syntax error on immediate_scheduler