fix a bug in src/oa_hw.c