Some bugs with connecting