bugfix preview window