Fixed item count bug