JBIDE-17268: Fixed cancel button behavior