Fix a problem when response is empty