Fixed emit with namespace