Bug fix

- Typo in the connected check