Fix missing connection variables bug