fixed wrong plug positions after rotation, at the cost of a small translation after rotations and grid realignment