bug fix for scheduler.select