fixed intMax() and intMin()