Fix indexing [] field, closes #20