fix for not getting correct branch name