Remove non-necessary var definition in connect loop.