fixed small bug with collision