Fixed a bug that broke the cancel button.