fixed friendly_id bug