fix bug: search was not working