Refractor origin avoidance system to be more correct and fix buildings clashing with each other