fix a couple of bugs recovering tag from a pickled json