p first/last fix