fixed crc-window bug