Fix the recursive emit, fix this in future, emit is abused