Fixed issue with connectors to main element in loops when loop element
is longer than main one.