fixed the saved search function