Fixing warnings on ConnectionManager