Added a trick to avoid errors caused by angle
freetrans would not rescale back to x:1,y:1, fixed