fixing cookie length in 32 bits