bugfix: scope must be cloned