fixed bug when initializing the store plugin