fixed module loading bug