Fixed calls to render error message