tbm_module: fix the wrong condition