fixed avx2 compatibility