Fix history play issue.