Fixed an error with the stencil buffer