viewer: adapted to Magnum changes.