Fixed crash when 12PM is chosen in the time picker