Fix a typo
Use faster floors in listIndex