I think the problem was with setting the module configuration into a variable.