bug fix: Array#dclone is no longer supported. Fixed the problem using Array.new