fix viewer