prevent returning NaN from store.sum