fix viewer not found bug