Fixed typo preventing indexing warning from properly functioning