fix git branch bug