fix problem with date