fixed p.adjust NULL bug