fixup the attribute errror in modules