fix cmax issues.