Bug for lowercase pm/am fix