fix viewer on mac