partial viewer fix for layer types