bugfix for local scan