Fixes some scaling offset issues.