fixed error in get_by_slug