Fix problem that NaN is set as transform parameter.