lib: fix chi_n; fix high-temp part of collision int