Fix vertical connection generation.