fix negative time