Fixed bug on clearing search lib