fix bug search toggle