Fixed stupid bug with pm's (crashes)