Fix branch script