Bug fixes

Bug fixes with rotated items and anchors with custom position.