Fixed stash cache. Closes #259.