fix autoConnect option