corrected typo in check connection type