bugfix of parsing branch name.