Fixed connection issue with variable being the same name