fixed: typo "indexOf"