Fixes friendly_id bug