fixed a bug in dbsearch, and one in unicode