pm.c fix after debugging cleanup