Removed references to `.dup` to make Ruby 2.0.0 compatible