Corrected bug which allowed SA exports in cases where it should not be