fixes error in solution of http_collect