remove the bug of transmitting empty file