Fixed connection truncating bug