Usually, when this happens, you may have opened the lid on the pan to peek at the rice before it was done. Resist the urge!! You need that steam to create the best texture. So don’t open the lid until it’s finished.