ENGINE-1578: fix stash problem