PERect rotate error corrected