fix error on br aroundNodeIfNeeded