fixed item count bug