Fix error on data migration.
Merge pull request #636 from akatsoulas/fix-profile-migration

Fix error on data migration.