fix cancel changes