fix errors when response type is list