Fix wrong param being sent for AMPM