Use item equals method
Merge pull request #1110 from umpirsky/fix/issue-1095-b

Use item equals method