fix removing index entry on primary key
Merge pull request #131 from hsn10/indexstays

fix removing index entry on primary key