fix #11 

fix reply does not display immediately,
function done should define before event emitter.