Fixed typo check_repeated()