Get things right after moving to a branch.