fix parameter to max()
Merge pull request #294 from errorx666/master

fix parameter to max()