Fix invalid function call