Two things may have happened: 1) The rice was not washed properly before you cooked it. 2) You used the incorrect water to rice ratio. The correct ratio is 1:1.