Added scale option to xml correction