fix ionization formula