fixed error getting connection from pool
Merge pull request #9 from fabriziofortino/master

fixed error getting connection from pool