fixed 500 response error