API: possible fix for file transfer crashing