improvements in geometric positioning 2/2

Bug corrections and some other improvements in geometric positioning