fixed a getter function without '$con'
Merge pull request #765 from rvitaliy/connection-fix

fixed a getter function without '$con'