Fixed AM/PM bug