fix viewer handling of program type