fix multiple delete calls from prompt