preference window; bugfix