fix a preferences window layering issue