Fixing scalebar in state
Fixing checkNameUnique