Fix some bugs with zsh project function