Fixed bug in search feature.