fixed bug with errors not rendering