Fixed a bug in the Electrolyte/PT-flash algorithm.