Fixed a minor bug in the function lensScale