fixed several issues when rendering connections