addToDOM bug solved.