fixed bug in crc