Fixed a bug in the MT ioloop.