Fixed confirm dialog bug

TODO: destruct the knit before creating a new one