handles NoMethodError: undefined method `include?' for :@__weak_backreferences__:Symbol