fix a date error