fixed migration script error