calendar dates fix