Fixing 'indexof' module issue