fixing a segfault in solver_2d