Fixed issue with sizes/offsets in compression