Used wrong index when parsing numbers