fix check # of params