Bugfix in send_file