fixed valid check for IEN