fixed error in Ccall