Fixed PM bug