fix error rendering