fixed typo in foreign function-call