Made local variable reference to fix cython 0.21