Fixed error on collision testing.