fix logic for connect method change from admin panel