Better approach for rendering error, ref shairontoledo/rghost/pull/38