bugfix - copyNodes was faulty