Fixed checking parameters.