Fixed CRC functions