solution for http collect problem