fix parm detection error