Fixed crash on 500 response