fix crc calculation with the new padding (#5143)