The fix is easy: just add a few squeezes of lemon juice to the cooking water.

Add one teaspoon of juice to the water for your rice, then cook as normal.

Tips for Cooking Rice| Oh, Sweet Basil

Image fromsql_samson.