Fixed residue calculation by dividing by number of sizes in add mie curve button