fix bug: on wxMac 2.9, search method does not work in library view.