Fixing a 500 internal server error response

Follow