fixed bug with distance assignement