fix checkout of branch