Fix errors for parameter validation after testing