fix the setHardware() call