fixed renderError not rendering a layout