I think it would be better to do @registered.clear instead of setting the hash to new.