possible fix for can't scan the first time issue