fix regression that causes crash on importing previous history