Fixed checking out of a branch