Added check for zero source for solvers