bug fix on maxCPU