use the right ref when creating initial tag while branching