bug fix for get conn