fix compile errors for omni