Fixing the way the module self-patches