Fixed generateSideEquations