Fixed right fucnti0on call when send file