Fixed error in saving scheduleItem