Fixed module not being initialized correctly