fix p3 build problem