Fix incorrect dV/dlambda for walls