I was getting the keyset name wrong, which caused favorites to be forgotten after certain operations. Hope this one didn't bite too many folks!