bugfix :  the iterators were not behaving as expected
when a callback returned -1 or -2 while there was only one item in the table