fix editing time field