It could be that the grains themselves were overcooked before being added to the wok or there was too much tomato paste or oil. I would suggest using a cooking utensil to occasionally press the grains against the wok or pan before stirring it. This will help to remove some of the moisture.