correct line offset while creating new connection