shorten_id() fix