raise error when try to render directly to stream, but has errors on RGhost