fixed update_branch bug where checkout was only current branch