Change inject by each_with_object.

It avoids return h.