fixed collision bug. Tests functionnal