Fix error in processing edit()