Strange bugs

For some reason connections didn't work at all, with no error messages
or anything. I changed one or two things and this seemed to make it work
again... Weird.