Fixed bug in search widget