fixed a bug in download repo dialog