Fixed adding multiple files bug