fixed no open connections issue (hopefully)