Fix bug: #408
Validate the profile before the export #408