fixed infinite loop in MailboxImpl.run