fix setConnectionMode