Fix bug where search bar did not work
XXX