Removing xyzdir and scale