fix complex search