fix bug when data response is empty