ixing update of scheduleitem
Restored changes from yesterday and fixed error