Fix cmd_pm