Fixed history bug.