Data converting migrations was wrong. Fixed
Merge pull request #3098 from Undev/important-migrations-fix

IMPORTANT! Data converting in migrations was wrong. Fixed