Inconsistent type and arguments in safe foreign calls...