The best way to avoid bugs appearing in your rice is to store it properly. I prefer to store my rice in an airtight canister. It makes it easy to keep it fresh and scoop the amount you need when you're ready to prepare.