fix bug in branchs display