Rewrited getCustomGeometry. Fixed bug with placing objects, when clicking on interface (not the best way i think)