fixed switching between search types