Fix random crash with recSizeKB > 4