Fixed scheduler error