fix the db-not-init bug