Fixed zsh functions