bugfix: preserve window position