Fixed all valgrind issues for ScheduleIn