Fixing file sending stuff