fix issue with load_modules