Fixed bug with sending files of size > 8192