Cancel button bug fixed.