Sort of fixed some things for a TopLevel window.