Fixed exception while search for trainers with name and other fields