hit detection fix