fix for scanning