fix bug caused by remoteFiles object support