Fixed search from the UI. It still has a problem though because it only works every other time.