Fix concerning edit history restore functionality