Fix auto-scanning bug :/