Small bugfixes on clearing divs.