fix history button