Corrected "atMinMax" calculation in invana.pl