report error when param is NaN