fixed undo for date+class