fixed problem with date