Fix cask errors