Set autoConnect=true to fix compile error