(issue #3897) reduce margin within well