fixed a bug with stash... hopefully