graph pm/am fix