Fix calling convention