Fix enable search panel switch