fix db_open error