Bug fix for the new general solver

Several trivial bugs are fixed for the new coding using general solvers.