correct the bug inside lens_deflect.m