Fix branches if they exist