Revert "apparent fix for preferences window visibility"