fix bug printing a ton of divs