Corrected hitTest