Fixed bug preventing potential scan.