Fix bug with module loading.