sweet-lib/Viewers: fixed parameter passing