Fixed a problems that pass through invalid connection