Handle branch id