Fixed code that was preventing branch checkouts from working.