Fixed the problem about isConnected function.
Merge branch 'fix_is_connected'