Cython bug fix for connect=True