Fix bug: float parsing in build_index.py