bug fix for multiout variable initialization if not all are conected the wrong index was used