solved invalid response bug