Fix AM/PM render bug