Just add water in correct ratio and not add more than required and stirring a bit before dum too helps in grainy rice.