Fix crash on clicking cancel on first run.