fix SQL Detection bug