Fix printing condition of db serach widget.