If your garlic turned slightly blue or green while cooking in the lemon sauce, it is still safe to eat. This chemical reaction can happen for a few reasons, like change in temperature, mixing with acid, and the age of the garlic. The best tip to avoid this from happening, try to use fresh garlic.