fixes to hit detection