Fix the synchronous loading of modules