fixed bug with extra (unexisted) connection return