fix chained indexing in parse