fixed emit problem