Item count condition fixed