Implement equals and hash code.
Problem fixed in commons.