Rotation and byte offset fix