fixed bug when using pyaio 0.3