Make sure there is enough moisture in the whole dish when you bake it. That is you should hav enough white sauce/ cheese on the edges too. Also cover it up in foil- tightly- before you bake it and make a few slashes with a knife on the top to let the steam escape.