fix call function