fixed a defect in reverse iterating over a snapshot with deletes