Fixes bug in store name check.