a little bit fix about array MAX