#1154 Fix restore as new version, fix history order