bug fixes to NS gui
fixed bug in distant msg sending code causing crashes