Fixed bug when cancel changes on tooth editing.