main time fix