fixed a minor scan bug