fix in isvalid