fix a typo in max_exceed variable name