fixed invalid connect