fixed code style of stencil leak fix