bugfix when loading module configuration