fixed pmpi for if statements without {}