fixed multiple files bug