fixes export protection