Fixed problem in 0.10 where onListen gets called twice