Fix location index serialization