preview bugfix