fixed error with empty response