Fixing bug with clicking cancel on first prompt