fix friendly_id

Fixes #488