bugfix for AVX2, integer min/max optimization not working for some reason