fix bug issue 1342 - cancelButton