To fix bug with no selected folder in sync tab