Solve problems with data collection from html