PIE_STATE should be 0 or 1, never be 2

Change-Id: Ic61491e00777de37a6d57c8b46a888514ddea46e