fixes a hang in cask