fixed migration-related bug