Fixed hit test bug