fix viewer compile