Fix error on index

Was alerting NaN because was subtracting two strings.