Fixing an issue where the pending index wasn't getting updated to the internal index which caused the view to reset to the pending index once it became visible again. (Thx. Trey).