BUG: inEOA function double use of sqr for inactive species (bug detected by Anthony Nitskiy)