fixes anthony's comment about not working if you aren't switching branches
diff --git a/stack.sh b/stack.sh
index 65b991f..e96ffbc 100755
--- a/stack.sh
+++ b/stack.sh
@@ -301,8 +301,9 @@
         cd $2
         git remote set-url origin $1
         git fetch origin
+        git checkout origin/$3
         git branch -D $3
-        git checkout $3
+        git checkout -b $3
     fi
 }