fix plain bug in getBranch.
fix plain bug in getBranch.