Changed checking for correct sender.

Changed checking for correct sender.