fix bug when adding new items and refreshing without setting fields