fixed get_labels with patch notation