fixed error setting onoff=1