Fixed incorrect calling convention.