bug fix for generating shorten content