fixed a bug that caused items with same name being rendered multiple times