Repo file was loaded onc when the dialog opened and every time "Apply" was clicked.
I changed the code now to load the file only when the dialog is opened.