Fix for bug when advanced searching in text fields
Minor style changes