Added fix for empty scans.