Parsing properly the HEAD pointer in branch list.