fixed this weird date problem