fixed possible clipping problem when rendering the sky