fixed issue with stacked values