Invalid IV prevention

prevent export with invalid IVs