Fix a db/dom thrash