fixed hit detection