fix history dialog