fix css bug when deleting semantic blocks