bugfix: don't use the connectindex if it is -1
1 file changed