fix branch checkout