fix bug for JC.Valid, JC.AutoSelect