fixed Location handling of createBranch()