Things would go weird if a plugin opens a new file dialog in the file callback, prevent this by clearing the string before the callback.