fix wrong function argument type