Fixed the cancel button issue.