fixed item count bug in remove()