fixes issue with server-side errors not showing up