Fixed issue in module initialization