grid preview bugfix