fix multiple eqs bug