bug fix - history was deleted when it wasn't yet saved