fixed a bug related to divs existing on pages