fix for creating module store before any attempts to read from it