Fixed cancel edit button bug