fix problem with time