fixed some part of file transfering