Fixed history tracking bug.