fixed an issue with the get_labeled_thrice method pointed out by DK