Fixed bug with autocollecting, and inserting dom data