small code fix in api omni