fixed small bug in file transfer