Fix load files bug