fix the position of checking the validity of parameters

- FIX : fig an problem of checking validity of parameters in Linux