fixed automatic hit code checking