Close div properly