fix bug with adding files