fixed bug where callback would not fire when modules were already loaded