Fixed schedule bug