fixes NSUserDefaults and errors when trying to search
Merge pull request #44 from amychiu/amy/development2

fixes NSUserDefaults and errors when trying to search