If you find the roasting time overcooks your garlic and makes it taste burnt or bitter, you can refrain from adding it until later in the cooking time. Try about 10 minutes before the potatoes are done. You can also use garlic powder instead of fresh garlic.