fixed weird database migration issue