Fix redundant refresh of component tree.