fix database migration error