Fix connection bug, fix wire stackoverflow