First, it is essential to mix the ingredients while stirring constantly. I start with flour and milk, then butter and eggs. Sometimes it is also advised to mix eggs with flour first in any case, then add the milk. If the dough still has lumps, it's easy to blend it again until smooth, put it in a stand mixer, or pass it through a sieve.