Fix pm/ps

Signed-off-by: illori illori@simplemachines.org