Fixing bug in out-of-memory sound response where we mutate a dictionary while iterating