Duplicating viewer node crashed in cases; bad ID was given to a function. Fix provided by Alexander Kuznetsov. Thanks!