Update core.rb

Isn't this loop redundant and make the bulk of notifications to be sent more than once?!