small omni api bug fix