Patch valid num cpus