Bug fixed, removed session.winnr. use winnr(0) get omnimenu window number.