Cleaned up the HTTP 500 error