Fix history becoming stuck.