emit.on data empty bug fixed