Fix error object rendering