fixing history error