fixed bug in sending that showed up using terminal (nw)