FIX: Fix connected

@agramfort I think this is your code. Have a look when you have a chance.