Fixed a minor bug in searching
Merge pull request #132 from jdalphon/FixProfile

Fixed a minor bug in searching