Fixes bug in when validating exported file