Fixed undefined $data on RotateHeadPacket