fix p1 then p3 bug