fix: dom bugs