Fixed bug in adding new schedule