Recalculate offset positions properly.