fix error rendering issue