fixup bug in iocapctrl.cpp