fix wrong function call