How To Avoid Sugar Balls Or Grainy Feeling In Mmf?

I made my first fall pumpkin the other day and it looked great, but the fondant was not up to my standard. I did shift the sugar prior to adding it to the MM and wanted to know how to avoid this in the future? I also wanted to find out if others are having the same issue? Usually MMF works for me.