Fix bug where history was overwritten, rather than merged

Tested-by: Mark Somerville <mark@scottishclimbs.com> [F17, MRI 2.0.0]
Signed-off-by: Mark Somerville <mark@scottishclimbs.com>