Fix index error when streaming words