fix cpu detection