Fixed issue of freezing window when a message was sent to self.