fix reversed fields in migration formatter