Fixed Bug: history not added for index record addition
Fixed Bug: Index records written with null _id