corrections of max... ranges of arrays