Made the error on 500 page render better