Make ref for binary classes and multi-values