fixed indexing issue in sentence assembler