current branch saving fix