fix some stuff if OC is enabled

Signed-off-by: Willi Ye <williye97@gmail.com>