Fixed Cython errors