fixed advanced doctor search
merged from master