Sometimes when making a very simple cheese sauce (butter, flour, milk, cheese [cheddar, usually]), the final sauce has a sort of gritty or slightly pebbly texture (rather than smooth) - it seems like maybe the cheese hasn't totally melted, even if I continue to heat the sauce.
Why does this happen? How can I avoid it?