fix collision test bug