P and Prime fixed (Pprime still buggy for g3<0)