fixed NI output problems