Fixes an issue with scans.