Fiexed ab bug with scheduler