applied patch for depricated truncate_words