fix checkout of git branch