fix #3999: bad import menu in history