Fix typo
Refactored connection