Fixed J = 0 bug in solve_maxwell.