Correct signs in equilibrium function