Fixed the problem with email search