fix createConnection call