Fix bug when canceling import data popup.