Fixed a bug with multiple history deletions.