* add shorten_at_end to fix shorten issue