fixed compatibility  with zsh