File size patch (thanks to Andreas M)