fix for "Uncaught TypeError: Cannot read property 'getModuleKeys' of null "