fixed bug with pms