Fixed generateSideEquations()