fixed possible items count conversion exception