Fixed flow of changing of scope/sheet/search while scope/search are null/not null