Fix a bug that was causing small downloads to fail.