fix when modules fail to load