Corrected ctypes error