fixed a bug with db_load