Fix problem where the store was already defined