code improved: item_vertical and item_count mismatch