Fixes error message rendering.