[BUG] equality test was setting attribute