fix bug when response being nil