The secret for your sauce to thicken and cook properly is to constantly stir the mixture, which also prevents it from burning. You can adjust the consistency by adding cornstarch slurry to thicken and more stock or water to thin out the sauce.