fix the date problem