fix collect logs