fix div deletion