fixed name
fixed some bugs found by cython