resolve emit problem