fix JSON navigation history bugs