Fix invalid function spec.