Fixed canceln button logic.