Fix runtime problem in stencil_3