fix connected var issue