fix: return singleton when num_elem is one