fix bug when response is collection