Fixed missing sync, could drop added files if the dialog is closed too fast