bug with absvalued max_nondiag was fixed