fix receiving and sending remote file dialogs