Moved undo of scaling to library