fixing pm bug