fix crash when close archive view in edit mode.