fix deletion in history