Get your taxes done using TurboTax

It's not a bug. Net Investment Income does not include any  any item taken into account in determining self-employment income IRC 1411(c) (6)

 

in other words, that loss is not an investment (income) loss for the NIIT tax