fix bug single/multiple value ports