try to prevent cursor leak
improved sort_by_usages_ pref