fix the detection input normalization bug