Fixed hit detection (Zach).