Fixed PM commands not working.

This fixes my previous commit, which broke PM commands. They now work again as expected.