Fixed bug on file-exists dialog