fix a bug when collect html content