fixed error on collision detector