fix P elements