fix bigid comparison