Fix a bug in equations.