Fix rendering bug when there are no items.