added extra indexOf to remove an default warning as an error when
printing the counted errors