Clean the mods array.