fix initialization for submodules