fix bug in getting directional units for new inputs and outputs