Fixed the errorMsg in the Renderer class