Fix bug with friendly_id in Entry model