I've got exactly same problem. when i set shadow_stencil to 1 everything is ok