Fixed a bug with locking of the background scanner and positioning of new entities that have names that match existing ones.