fix dom artifact on empty text