fix for each_with_object