fix error of receiving server response