Fix period for scheduler