fix viewer selection