Fixed bug that was ignoring the plane to rotate