Fix the bug in P3.