Fixed where is no db dir.