fixed bug where null branch name would be passed