fix file size limit check: now it check uncompressed data