fix callback
Fix detection of center inside obstacle