fix isotope handling on formula