Minor improvement.
Force replacement to middle and change best direction.