fix extract in zsh