fix empty word bug