> Yes, I think it's a bug.. The reason it happens is the following: Thank you for the explanation. One more question: I've found out that when I explicitly call aa.rehash after every aa.remove() then problem disappears. Is it really so or it's just hides (and will reappears on different data set)? -- Egor