correct relative position and scale ratio