correctly set index for exported ports