fix small bug in detection collision
Merge remote-tracking branch 'origin/michal'