type id validation fix.